package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author：LiGen
 * @Package：com.metago.sms.domain.req
 * @Project：meta-sms
 * @name：SendMessageOneDataReq
 * @Date：2024/3/20 18:07
 * @Filename：SendMessageOneDataReq
 */
@Data
public class SendMessageOneDataReq {

    @ApiModelProperty(name = "发送手机号码")
    String phone;

    @ApiModelProperty(name = "模板ID")
    Long templateId;

    @ApiModelProperty(name = "短信内容变量")
    List<String> contentVariable;

    public static SendMessageOneDataReq build(String phone,Long templateId,List<String> contentVariable){
        SendMessageOneDataReq sendMessageOneDataReq = new SendMessageOneDataReq();
        sendMessageOneDataReq.setPhone(phone);
        sendMessageOneDataReq.setTemplateId(templateId);
        sendMessageOneDataReq.setContentVariable(contentVariable);
        return sendMessageOneDataReq;
    }
}
